//账号登录

const login={
  path:"/login",
  name:"login",
  auth:0,
  component:()=>import('@/views/login'),
}

//绑定手机号
const loginBind={
  path:"/loginBind",
  name:"loginBind",
  auth:0,
  component:()=>import('@/views/login/Login-bind'),
}

//主页
const home={
  path:"/home",
  name:"home",
  auth:0,
  component:()=>import('@/views/home'),
  children:[
    {
      path:"/company",
      name:"company",
      auth:0,
      component:()=>import('@/views/home/Company'),
    },
  ],
}

const legal={
  path: "/legal",
  name: "legal",
  auth: 0,
  component: () => import('@/views/home/Legal'),

};

const manage={
  path: "/manage",
  name: "manage",
  auth: 0,
  component: () => import('@/views/home/Manage'),

};

const company2={
  path: "/company2",
  name: "company2",
  auth: 0,
  component: () => import('@/views/home/Company2'),

};


const test={

  path:"/test",
  name:"test",
  auth:0,
  component:()=>import('@/views/home/Test'),

}

const index={

  path:"/",
  redirect:"/company",

};

// 所有上面定义的路由都要写在下面的routers里
const routers = [
  test,
  index,
  login,
  loginBind,
  home,
  legal,
  manage,
  company2,
];


export default routers;


